﻿using System;
using TimeCalendar;

namespace TimeCalendar_Sample
{
    static class Program
    {
        static void Main()
        {
            var gd = new GregorianDate(Eras.AD, 2000, 1, 1);

            Console.WriteLine("Set date:" +
                "\nEra: " + gd.Era +
                "\nYear: " + gd.Year +
                "\nYearType: " + gd.YearType +
                "\nMonth: " + gd.Month +
                "\nMonthType: " + gd.MonthType +
                "\nDay: " + gd.Day);

            var md = TimeCalendarConverter.FromGregorianToMaya(gd, Correlations.GMT);
            gd = TimeCalendarConverter.FromMayaToGregorian(md, Correlations.GMT);


            Console.WriteLine("\n\nSet date:" +
                "\nEra: " + gd.Era +
                "\nYear: " + gd.Year +
                "\nYearType: " + gd.YearType +
                "\nMonth: " + gd.Month +
                "\nMonthType: " + gd.MonthType +
                "\nDay: " + gd.Day);

            Console.ReadLine();
        }
    }
}
